package rig.com.autoconfigure.runner;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.context.annotation.Configuration;
import rig.com.util.TimeUtil;

/**
 * @author MShaoJie
 * @create 2021/8/24 14:39
 **/
@Slf4j
@Configuration
public class SnowflakeRunner implements ApplicationRunner {
    @Override
    public void run(ApplicationArguments args) throws Exception {
        log.info("TMC Runner启动...");
        long startTime = TimeUtil.currentTimeMillis();

        log.info("首次加载耗时: {}ms", TimeUtil.currentTimeMillis() - startTime);
    }
}
